In the Linux based video surveillance acquisition system, the camera captured a frame of video image data are generally hardware automatically compressed into the JPEG format, and then saved to the camera device buffer. If you want to display the
1. System OverviewThis design uses NIOS2 32-bit processor, through the SPI interface to read the JPEG image data in the SD/TF card into memory, SD/TF card file system for FAT32,NIOS2 software to achieve JPEG decoding, start Framereader and clocked
/***===================================================================* image.class.php image processing class for image processing, including adding watermarks and generating thumbnails* March 25, 2013 22:10:38*=====================================
/**
* Picture shrinkage Water printing type
*
*/
Class Cls_photo
{
protected $waterrate = 0.2; The scale of the watermark icon on the picture
protected $width = 300; Thumbnail default width
protected $height =
/**
* Picture shrinkage Water printing type
*
* @version 1.0;
*
*/
Class Cls_photo
{
protected $waterrate = 0.2; The scale of the watermark icon on the picture
protected $width = 300; Thumbnail default
The code is as follows
Copy Code
Class Resizeimage{Picture typevar $type;Actual widthvar $width;Actual heightvar $height;The width after the changevar $resize _width;Change the height of the postvar $resize _height;Whether or not to
GD Library to open/*** Author:smallchicken* time:2009 June 8 16:46:05* Mode 1: Forced cropping, generate images in strict accordance with the need, not enlarge, over cropping, the picture is always covered* Mode 2: and 1 similar, but not when the
1
Getimagewidth (); Ten $height = $Image->getimageheight (); 11//Determine if the photo is long and wide equal to the IF ($width! = $height) {13//unequal) first truncate the image center portion with the minimum edge ($width > $height) {1 5 $x =
I used Jcrop to get x, y coordinates, width, height, passed to uphoto.php processing, now everything is normal, but if the front-end user chooses the picture width is too large (I use CSS style control user selected picture maximum width is 680px),
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.